package com.gxa.learning.pc.service;

import com.gxa.learning.core.pojo.Cost;
import com.gxa.learning.core.service.BaseService;

/**
 * @version E-learning
 * @Author lonny
 * @Date 2021/12/7 10:06
 */
public interface CostService extends BaseService<Cost> {
    /**
     * 查询成本
     *
     * @param cost 对象
     * @return 返回
     * @throws Exception 抛出
     */
    Cost findByCost(Cost cost) throws Exception;

    /**
     * 添加
     *
     * @param cost 对象
     * @throws Exception 抛出
     */
    void insertCost(Cost cost) throws Exception;

    /**
     * 删除
     *
     * @param id 成本编号
     * @throws Exception 抛出
     */
    void deleteCost(String id) throws Exception;

    /**
     * 更新
     *
     * @param cost 对象
     * @throws Exception 抛出
     */

    void updateCost(Cost cost) throws Exception;
}
